package com.lain.T1.fastdfs.client.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Title:       FastDFSConfig Description:
 *
 * @author : liugaoyang date         : 2019/6/26 15:56
 */
@Component
@Data
@PropertySource({"classpath:/config.properties"})
public class FastDFSConfig {

    /**
     * TrackerServer 配置文件路径
     */
    public static final String FASTDFS_CONFIG_PATH = "config.properties";

    /**
     * 文件服务器地址
     */
    @Value("${fastdfs.file_server_addr}")
    private String fileServerAddr;

    /**
     * FastDFS秘钥
     */
    @Value("${fastdfs.http_secret_key}")
    private String fastDFSHttpSecretKey;

    /**
     * 最大连接数 default 8.
     */
    @Value("${fastdfs.max_storage_connection}")
    private int maxStorageConnection;
}
